#include "financeitem.h"
#include <QJsonObject>

FinanceItem::FinanceItem(QObject *parent) : QObject(parent)
{

}

void FinanceItem::loadFromJsonObject(QJsonObject obj){
    id = obj.value("id").toInt();
    itemId = obj.value("item_id").toString();
    companyId = obj.value("company_id").toString();
    type = obj.value("type").toInt();
    category = obj.value("category").toString();
    subject = obj.value("subject").toString();
}
